#pragma once
#include"HashTable.h"

namespace lth
{
	template<class k, class Hush = HushFuc<k>>
	class unordered_set
	{
		struct SetKeyOfT
		{
			k operator()(const k& key)
			{
				return key;
			}
		};
	public:

		bool insert(const k& key)
		{
			return _ht.insert(key);
		}

		bool find(const k& key)
		{
			return _ht.find(key);
		}

		bool erase(const k& key)
		{
			return _ht.erase(key);
		}

	private:
		HashTable<k, k, SetKeyOfT, Hush> _ht;
	};
}